﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NuMvvm.Validation
{
    public class ValidationResult
    {
        public ValidationResult(string errorMessage, string memberName) {
            MemberName = memberName;
            ErrorMessage = errorMessage;
        }

        public ValidationResult(string errorMessage)
            : this(errorMessage, "")
        {
   
        }

        public string MemberName { get; private set; }
        public string ErrorMessage { get; private set;  }
    }
}
